package com.day0907;

import java.util.Scanner;

public class Text2_task {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入基本工资：");
        double money = in.nextInt();
        System.out.println("该员工的基本工资细目为：");
        System.out.println("基本工资为：" + (int)money + "元");
        System.out.println("物价津贴为：" + money * 0.4 + "元");
        System.out.println("房屋津贴为：" + money * 0.25 + "元");
        System.out.println("员工薪水为：" + (money + (money * 0.4) + (money * 0.25)) + "元");

        int num1 = 10;
        int num2 = 8;
        System.out.println("互换前手中的牌：");
        System.out.println("左手：" + num1);
        System.out.println("右手：" + num2);
        int temp = num1;
        num1 = num2;
        num2 = temp;
        System.out.println("互换后手中的牌：");
        System.out.println("左手：" + num1);
        System.out.println("右手：" + num2);
    }
}
